// 引入createStore,专门用来是创建redux 中最为核心的strore对象   applyMiddleware是中转执行件
import {createStore,applyMiddleware} from 'redux'
//引入为Count组件服务的reducer
import countReducer from "./count_reducer"
// 引入redux-thunk,用关于支持异步action
import thunk from 'redux-thunk'
const store=createStore(countReducer,applyMiddleware(thunk))
// 把store 暴露出去
export default store